{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>广告</title>
    <link rel="stylesheet" href="{% static 'students/css/ad.css' %}">
</head>
<body>
    <div id="ad" class="box">我是一个小广告</div>

    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <script>
        function f(){
            $('#ad').toggleClass('box');
        }
        setInterval(f, 1000);
    </script>
</body>
</html>